// pages/work14/star/star.js
Component({

  properties: {
    value:{
      type:Number,
      value:0
    },
    displayNum:{
      type:Boolean,
      value:true
    }

  },
    lifetimes:{
      attached(){
        let f = Math.floor(this.data.value/2)
        let h = Math.ceil((this.data.value % 2)/2)
        let e = 5 - f - h
        console.log(f,h,e)
        this.setData({
          f,h,e
      })
        
    }
  }
})
